package mybatis_learn.pojo;

public class Student {
  private  Long sid;
  private String sname;
  private Clazz clazz;


    public Student() {
    }

    public Student(Long sid, String sname, Clazz clazz) {
        this.sid = sid;
        this.sname = sname;
        this.clazz = clazz;
    }

    /**
     * 获取
     * @return sid
     */
    public Long getSid() {
        return sid;
    }

    /**
     * 设置
     * @param sid
     */
    public void setSid(Long sid) {
        this.sid = sid;
    }

    /**
     * 获取
     * @return sname
     */
    public String getSname() {
        return sname;
    }

    /**
     * 设置
     * @param sname
     */
    public void setSname(String sname) {
        this.sname = sname;
    }

    /**
     * 获取
     * @return clazz
     */
    public Clazz getClazz() {
        return clazz;
    }

    /**
     * 设置
     * @param clazz
     */
    public void setClazz(Clazz clazz) {
        this.clazz = clazz;
    }

    public String toString() {
        return "Student{sid = " + sid + ", sname = " + sname + ", clazz = " + clazz + "}";
    }
}
